import request from '@/utils/request'

// 云存储配置信息
export function info() {
  return request({
    url: '/oss/oss/info',
    method: 'get',
  })
}

export const getList = (pageNum, pageSize, params) => { 
  return request({
    url: '/oss/oss/list',
    method: 'get',
    params: {
      ...params,
      pageNum,
      pageSize,
    }
  })
}

export function saveConfig(data) {
  return request({
    url: '/oss/oss/saveConfig',
    method: 'post',
    data: data
  })
}

export const remove = (ids) => {
  return request({
    url: '/oss/oss/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}
